package br.com.puertorico.model.querybuilder.formatters;

/**
 * @author daniel
 * @version 1.0.0
 */
public class ReplaceItem implements Comparable<ReplaceItem> {

	private String from;

	private String to;

	private Integer order;

	/**
	 * @param from
	 * @param to
	 * @param order
	 */
	public ReplaceItem(String from, String to, Integer order) {
		this.from = from;
		this.to = to;
		this.order = order;
	}

	/**
	 * @return the from
	 */
	public String getFrom() {
		return from;
	}

	/**
	 * @return the to
	 */
	public String getTo() {
		return to;
	}

	/**
	 * @return the order
	 */
	public Integer getOrder() {
		return order;
	}

	public int compareTo(ReplaceItem o) {
		return this.getOrder().compareTo(o.getOrder());
	}

}
